#include <iostream>
using namespace std;
#if 0
class Point
{
public:
    int m_x;
    int m_y;

};


int add(int val1, int val2 )
{
    return val1 + val2;
}
#endif
template<typename T>
T add(T val1, T val2)
{
    return val1 + val2;
}

int main()
{
    int num1 = 100, num2 = 200;
    int sum = add<int>(num1, num2);
    cout<<"sum="<<sum<<endl;

    float v1 = 7.5, v2 = 9.9;
    float v3 = add<float>(v1, v2);
    cout<<"v3=" <<v3<<endl;

    return 0;
}